package cn.udinghuo.model.archives.serviceterms;

import com.fasterxml.jackson.annotation.JsonSetter;

import org.springframework.util.Assert;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.Column;
import cn.udinghuo.core.domain.entity.BaseUser;	
import cn.udinghuo.core.domain.entity.Comment;
import cn.udinghuo.core.domain.entity.ita.CacheKey;

/**
 * @author zhaoyt
 *	服务条款确认
 */
@Entity
@Table(name="servicetermsconfirm")
public class ServiceTermsConfirm extends BaseUser<Long>  {

	private static final long serialVersionUID = 1593835520L;
	/**
	* 服务条款idserviceTermsId
	*/
	@Comment(value="服务条款id")
	@Column(name="iServiceTermsId")
	private Long serviceTermsId;
	/**
	* 确认状态：同意accessType
	*/
	@Comment(value="确认状态：同意")
	@Column(name="iAccessType")
	private Integer accessType;
	public Long getServiceTermsId() {
		return this.serviceTermsId;
	}
	
	public void setServiceTermsId(Long value) {
		this.serviceTermsId = value;
	}
	
	public Integer getAccessType() {
		if(this.accessType == null){
			return 1;
        }
		return this.accessType;
	}
	
	public void setAccessType(Integer value) {
		this.accessType = value;
	}
	
}
